﻿using System.IO;

namespace StampController.Core
{
    public class DataHelper
    {
        /// <summary>
        /// Read template
        /// </summary>
        /// <param name="filePath"></param>
        /// <returns></returns>
        public static string ReadTemplateFile(string filePath)
        {
            string tempReadTemplate = string.Empty;
            if (File.Exists(filePath))
            {
                StreamReader objStreamReader = File.OpenText(filePath);
                string contents = objStreamReader.ReadToEnd();
                objStreamReader.Close();
                tempReadTemplate = contents;
            }
            return tempReadTemplate;
        }
    }
}
